<?php

require_once 'Page.class.php';

class ErrorPage extends Page {
	
	public function __construct($a) {
		$pkPage = null;
		
		if(is_a($a, "PageRequest")) {

			$pkPage = $a->getPkPage();	
		}
			
		elseif(is_a($a, "Page")) {
			$pkPage = $a->getPkPage(); 
			
		}
		
		parent::__construct($pkPage);
		
		$this->moduleName = "ErrorPage";
		$this->moduleMethod = "index";
		
		$this->pageTitle = "Fehler";
		
		$msg = SecurityUser::getUser()->getSystemMessages();
		if($msg) {
			$this->pageText = implode("<br>", $msg);
		}
		$this->pageCreateDate = time();
		
	}
	
}
?>